package com.kaifamiao.month03.day0331.bank.model;

public class Statement {

    int operation; // 0 存款  1 取款
    String name;
    long card;
    String number;  // 流水号
    double money;

    public Statement() {
    }

    public Statement(String name, int operation, String number, long card,double money) {
        this.name = name;
        this.operation = operation;
        this.number = number;
        this.card = card;
        this.money = money;
    }

    public int getOperation() {
        return operation;
    }

    public void setOperation(int operation) {
        this.operation = operation;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public long getCard() {
        return card;
    }

    public void setCard(long card) {
        this.card = card;
    }

    public String toString() {
        return "姓名：" + this.name + " ，卡号： " + this.card + " ，流水号： " + this.number +  " ， " +
                (this.operation == 1 ? "取款 " : "存款 ") + this.money + " 元！";
    }
}
